package com.telecom.restaurant.controllor.manage;

import com.telecom.restaurant.constant.DataResultConstant;
import com.telecom.restaurant.domin.DataResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/restaurant/test")
public class TestController {


    @RequestMapping("/runCloseOrderTask")
    @ResponseBody
    public DataResult runCloseOrderTask(String key) {
        if(!"management".equals(key)){
            return DataResultConstant.WRONG_PARAM;
        }

        DataResult dataResult = DataResultConstant.buildSuccessResult(null);
        return dataResult;
    }


}
